import { useState } from 'react';

const useSelect = (step, jumpToNextQuestion, changeSelect) => {
  const [selectCombination, setSelectCombination] = useState([]);
  const handleValueSelected = (value) => {
    setSelectCombination([...selectCombination, value]);
    jumpToNextQuestion(value);
  };
  const handleJumpToLast = (value, selectedValue) => {};

  return {
    selectCombination,
    handleValueSelected,
    handleJumpToLast,
  };
};

export default useSelect;
